package com.szq.pattern.factory;

import com.szq.pattern.bean.*;

/**
 * @description:
 * @author: szq
 * @date: 2021-09-02 14:07:01
 */
public class ChinaFactory extends AbstractFactory {


    @Override
    public Chair createChair() {
        System.out.println("chair: made in china");
        return new ChinaChair();
    }

    @Override
    public Sofa createSofa() {
        System.out.println("sofa: made in china");
        return new ChinaSofa();
    }

    @Override
    public Table createTable() {
        System.out.println("table: made in china");
        return new ChinaTable();
    }
}
